package com.tsystems.skilltest.processor;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.tsystems.skilltest.Transaction;
import com.tsystems.skilltest.TransactionDAO;

/**
 * @author aesipov
 */
public class TransactionProcessorNegative implements TransactionProcessor
{
    private static final Logger logger = LoggerFactory.getLogger(TransactionProcessorNegative.class);

    private TransactionDAO      dao    = new TransactionDAO();

    public void process(Transaction transaction)
    {
        dao.save(transaction);
        logger.info("Negative processor was called");
    }
}
